

* This file: "$projectdir/code/raw_pulls/lehd2018_opm_phf_ecf_usiris.sas" creates the following output:
*   1) $projectdir/data/raw_pulls/lehd_usiris/phf_interleave_b_2018_usiris_2018q4.dta
*   2) $projectdir/data/raw_pulls/lehd_usiris/opm_us_ehf_phf_2014_usiris_2018q4.dta
*   3) $projectdir/data/raw_pulls/lehd_usiris/ecf_interleave_seinunit_t13_2018_usiris_2018q4.dta
*   4) $projectdir/data/raw_pulls/lehd_usiris/ecf_interleave_seinunit_t26_2018_usiris_2018q4.dta
*   5) $projectdir/data/raw_pulls/lehd_usiris/ecf_interleave_sein_t13_2018_usiris_2018q4.dta
*   6) $projectdir/data/raw_pulls/lehd_usiris/ecf_interleave_sein_t26_2018_usiris_2018q4.dta

* Description of files:
*
*   1) PHF job histories of UMETRICS PIKs obtained by merging ~/adrec/university_employee_usiris/2018/usiris_emnmxwalk_2018q4a_2018q4a
*      with ~/mixed/lehd_interleave_t13/2018/phf_interleave_b_usiris
*
*   2) OPM job histories of UMETRICS PIKs obtained by merging ~/adrec/university_employee_usiris/2018/usiris_emnmxwalk_2018q4a_2018q4a
*      with ~/mixed/lehd_s2014_opm/2014/opm_us_ehf_phf
*
*   To create files 3-6, we select the SEIN and SEINUNIT`i' for i = 1/10 (The SEINUNITS are probabilistically imputed) from the 
*      PHF-UMETRICS subset. This gives us 10 files with observations uniquely defined at the SEIN-SEINUNIT level. We then stack 
*      these and de-dup. This gives us file with all SEINUNITS ever associated with a given SEIN (for the UMETRICS PHF sub-sample).
*
*   3) T13 info for ECF SEIN-SEINUNITS at which at least one UMETRICS PIK worked in the PHF. Obtained by merging the SEIN-SEINUNIT 
*      file described above with ~/mixed/lehd_interleave_t13/2018/ecf_interleave_seinunit_t13
*
*   4) T26 info for ECF SEIN-SEINUNITS at which at least one UMETRICS PIK worked in the PHF. Obtained by merging the SEIN-SEINUNIT 
*      file described above with ~/mixed/lehd_interleave_t26/2018/ecf_interleave_seinunit_t26
*
*   5) T13 info for ECF SEIN at which at least one UMETRICS PIK worked in the PHF. Obtained by merging the SEIN file described above 
*      with ~/mixed/lehd_interleave_t13/2018/ecf_interleave_sein_t13
*
*   6) T26 info for ECF SEIN at which at least one UMETRICS PIK worked in the PHF. Obtained by merging the SEIN file described above 
*      with ~/mixed/lehd_interleave_t26/2018/ecf_interleave_sein_t26


do "organize_ipeds_ein.do"

do "lehd_sein_any_ht.do"

do "organize_lehd_phf.do"

do "lehd_jobs_naics_impute.do"

do "iris_lehd_jobhistory.do"


